package mailsending;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.extra.mail.MailAccount;
import cn.hutool.extra.mail.MailUtil;

public class MailUtilTest2 {


    public static void main(String[] args) {
        MailAccount account = new MailAccount();
        account.setHost("smtp.qq.com");
        account.setPort(465);
        account.setAuth(true);
        account.setSslEnable(true);
        account.setFrom("1720696548@qq.com");
        account.setUser("1720696548");
        account.setPass("kphjmcmiabrxfaci");
        MailUtil.send(account, CollUtil.newArrayList("2121180858@qq.com"), "【虚空终端】来自宵宫的信", "旅行者, 妳好久没来稻妻玩啦, 甚是想念\"", false);
    }
}
